﻿using RuoyiQuickLogin.Core;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace RuoyiQuickLogin.Framework
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void BtnSubmit_Click(object sender, EventArgs e)
        {
            var http = new RuoyiHttp();
            http.BaseUrl = TextBaseUrl.Text;
            http.Login(TextUsername.Text, TextPassword.Text);
            TextToken.Text = http.Token;
            Clipboard.SetDataObject(http.Token);
        }
    }
}
